$(function() {
	$("#chuyuan").click(function(){
		alert("申请已提交，会在一个小时内由工作人员通知")
		history.back();
	})
	$("#czhi").click(function(){
		alert("充值成功")
	})
	$("#ruzhu").click(function(){
		alert("已提交审批，工作人员会在一个小时内电话联系")
		history.back();
	})
	$("#cy").click(function(){
		alert("外出申请以提交")
	})
	$("#tz").click(function(){
		alert("退住申请以提交")
	})
	$("#file2").blur(function(){
		var a=$("#file2").val();
		var b=$("#file1").val();
		if(a!=""&&b!=""){
			$(".sfz").remove();
			$(".trs").append("<div class=\"row sfz\">\n" +
                "                                                <div class=\"col-md-12 col-sm-12 col-xs-12\">\n" +
                "                                                    <div class=\"form-group\">\n" +
                "                                                        <input type=\"text\" placeholder=\"姓名:理论\" />\n" +
                "                                                    </div>\n" +
                "                                                </div>\n" +
                "                                            </div>\n" +
                "                                            <div class=\"row sfz\">\n" +
                "                                                <div class=\"col-md-12\">\n" +
                "                                                    <div class=\"form-group\">\n" +
                "                                                        <input type=\"text\" placeholder=\"性别:女\" />\n" +
                "                                                    </div>\n" +
                "                                                </div>\n" +
                "                                            </div>\n" +
                "                                           \n" +
                "                                            \n" +
                "                                            <div class=\"row sfz\">\n" +
                "                                                <div class=\"col-md-12\">\n" +
                "                                                    <div class=\"form-group\">\n" +
                "                                                        <input type=\"text\" placeholder=\"年龄:58\" />\n" +
                "                                                    </div>\n" +
                "                                                </div>\n" +
                "                                            </div>")
		}
	})
	$("#file1").blur(function(){
		var a=$("#file2").val();
		var b=$("#file1").val();
		if(a!=""&&b!=""){
			$(".sfz").remove();
			$(".trs").append("<div class=\"row sfz\">\n" +
	            "                                                <div class=\"col-md-12 col-sm-12 col-xs-12\">\n" +
	            "                                                    <div class=\"form-group\">\n" +
	            "                                                        <input type=\"text\" placeholder=\"姓名:理论\" />\n" +
	            "                                                    </div>\n" +
	            "                                                </div>\n" +
	            "                                            </div>\n" +
	            "                                            <div class=\"row sfz\">\n" +
	            "                                                <div class=\"col-md-12\">\n" +
	            "                                                    <div class=\"form-group\">\n" +
	            "                                                        <input type=\"text\" placeholder=\"性别:女\" />\n" +
	            "                                                    </div>\n" +
	            "                                                </div>\n" +
	            "                                            </div>\n" +
	            "                                           \n" +
	            "                                            \n" +
	            "                                            <div class=\"row sfz\">\n" +
	            "                                                <div class=\"col-md-12\">\n" +
	            "                                                    <div class=\"form-group\">\n" +
	            "                                                        <input type=\"text\" placeholder=\"年龄:58\" />\n" +
	            "                                                    </div>\n" +
	            "                                                </div>\n" +
	            "                                            </div>")
		}
	})
})